<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich">

    <h:form>
        <h:outputLabel value="选择审批人" style="font-weight:bold" />
        <hr />
        <rich:tree  render="selectiontable" style="max-width:400px;max-height:200px;text-align: left"
                    selectionType="ajax" toggleType="client"
                    selectionChangeListener="#{checkFlowBean.processSelection}"
                    value="#{checkFlowBean.rootNode}" var="item" >
            <rich:treeNode rendered="#{item.data.type eq '0'}">
                <h:outputText value="#{item.data.name}" style="float:left" />
            </rich:treeNode>
            <rich:treeNode rendered="#{item.data.type eq '1'}" iconLeaf="/images/singer.gif">
                <h:outputText value="#{item.data.name}" style="float:left" />
            </rich:treeNode>
        </rich:tree>
    </h:form>
</ui:composition>